//
//  WithdrawListCell.m
//  BaseProject
//
//  Created by 王洋 on 2020/8/8.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "WithdrawListCell.h"

@implementation WithdrawListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)fillCellWithModel:(CommonWithDrawListModel *)model {
    
    self.moneyLab.text = [NSString stringWithFormat:@"金额：%@(实际到账%@)",[Utilities changeDoubleToString:model.wtotalAmount],[Utilities changeDoubleToString:model.wamount]];
    self.ctimeLab.text = [NSString stringWithFormat:@"创建时间：%@",model.wcreateTime];
    self.shenheTime.text = [NSString stringWithFormat:@"时间：%@",model.wexamTime];
    self.shenheReason.text = [NSString stringWithFormat:@"原因：%@",model.wexamReason] ;
    
    switch (model.wtype) {
        case 1:{
            self.wTypeLab.text = [NSString stringWithFormat:@"提现方式：微信"];
        } break;
        case 2:{
            self.wTypeLab.text = [NSString stringWithFormat:@"提现方式：支付宝"];
        } break;
        default:{
            self.wTypeLab.text = @"提现方式：";
        } break;
    }
}

@end
